package com.wyg.proxy;

/**
 * @description:
 * @author: WYG
 * @time: 2021/4/8 16:35
 */

public class UserServiceProxy implements UserService{
    UserService impl;
    public UserServiceProxy() {
        this.impl = new UserServiceImpl();
    }
    @Override
    public void addUser(String name) {
        System.out.println("进行了代理!");
        impl.addUser(name);
    }
}
